package com.ctn.information.content;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;

import com.ctn.information.view.TabPagerView;
import com.ctn.information.view.model.TabPager;

/**
 * 中心区域面板 - 新闻
 * 
 * @author HLJ
 *
 */
public class NewsFragment extends TabPagerView {
	
	public NewsFragment() { 
	}

	String[] tags = new String[]{"Larger","led","light","lighter","person","topic"};
	
	String[] titles = new String[]{"宏观","LED","灯饰","电工","人物","专栏"};
	
	//===2013-5-27===edit ==start
	//Class[] clazzes = new Class[]{SampleFragment.class,BusinessFragment.class,DealerFragment.class,StateFragment.class,FestivalFragment.class,RoadFragment.class};
	//===2013-5-27===edit ==end
	public List<TabPager> setTabPagerList() {
		//===2013-5-27===edit ==start
		/*
		 *  获取2级标题并填充数据  初始化  tags和titles
		 */
		
		List<TabPager> tps = new ArrayList<TabPager>();
		for (int i =0;i < tags.length;i++) {
			TabPager tp = new TabPager();
			//tp.clazz = clazzes[i];
			tp.clazz=SampleFragment.class;
			Bundle b=new Bundle();
			b.putString("SecondTopic", tags[i]);
			tp.bundle = b;
			tp.model = 0;
			tp.tag = tags[i];
			tp.title = titles[i];
			tps.add(tp);
		}
		return tps;
		//===2013-5-27===edit ==end
	}
}
